﻿using Abp.Domain.Entities.Auditing;
using KDS.Mes.Mes.Lines;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.Stations
{
    /// <summary>
    /// 工位信息
    /// </summary>
    [Table("T_BasicStation")]
    public class Station : FullAuditedEntity
    {

        [ForeignKey("LineId")]
        public virtual Line Line { get; set; }
        /// <summary>
        /// 所属线体
        /// </summary>
        public virtual int LineId { get; set; }

        /// <summary>
        /// 工位名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string StationName { get; set; }

        /// <summary>
        /// 工位代码
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string StationCode { get; set; }
    }
}
